package com.springboot.study.controller;

import com.springboot.study.service.DemoRetryService;
import com.springboot.study.service.IRetryDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: guodong
 * @Date: 2021/9/16 11:08
 * @Version: 1.0
 * @Description:
 */
@RestController
@RequestMapping("retryController")
public class RetryController {


    @Autowired
    IRetryDemoService demoRetryService;


    @GetMapping(value = "call")
    public void call(){
        try {
            demoRetryService.call();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }



}
